package com.qf.entity.md.unit;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zdl
 * @date 2025/2/26
 */
@Data
public class MdUnitMeasure implements Serializable {
    private Long measureId;       // measure_id
    @ExcelProperty(value = "单位编码" ,index = 0)
    private String measureCode;   // measure_code
    @ExcelProperty(value = "单位名称",index = 1)
    private String measureName;   // measure_name
    @ExcelProperty(value = "是否主单位",index = 2)
    private String primaryFlag;   // primary_flag
    private Long primaryId;       // primary_id
    @ExcelProperty(value = "与主单位换算比例",index = 3)
    private Double changeRate;    // change_rate
    @ExcelProperty(value = "是否启用",index = 4)
    private String enableFlag;    // enable_flag
    @ExcelProperty(value = "备注" ,index = 5)
    private String remark;        // remark
    private String attr1;         // attr1
    private String attr2;         // attr2
    private Integer attr3;        // attr3
    private Integer attr4;        // attr4
    private String createBy;      // create_by
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;      // create_time
    private String updateBy;      // update_by
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;      // update_time

}
